package com.digitalchina.lxnsy.sy.caijing;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;


public class EditEjaculationsRecordActivity extends BaseHtmlActivity {
    private int tag = 0;

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);

        loadUrl("editEjaculationsRecord");
        callJsMethod("refresh");
        setTitle("编辑采精记录");

    }


    @Override
    public void onResume() {
        super.onResume();
        if (tag > 0) {
            callJsMethod("refresh");
        }
        tag++;

    }




    @Override
    public void rightOnClick() {

    }

    public class JsApi {


        @JavascriptInterface
        public void addCheckEarTag2d(Object msg) {
            go(com.digitalchina.lxnsy.sy.shengzhang.AddCheckEarTag2dActivity.class);


        }


    }
}
